package org.huangxiaozhe.adventure.common;

public class Parabola {
	
	public static final float Length = ConstantUtil.roadSpan;
	public static final int g = 10;
	public static float t;
	public static float vy;
	public static float vx;
	public static void set(float x, float y){
		t = Length / x;
		vx = x;
		vy = y;
	}
	
	
	public static float next(){
		float ret = 0;
		ret = vy * t - g * t * t / 2;
		vy -= g * t;
		return ret;
	}
}
